package com.atung.parking.request.save;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author Administrator
 */
@Data
public class SaveOrUpdateSuperUserRequest implements Serializable {
    @ApiModelProperty("用戶編號")
    private Long id;
    @ApiModelProperty("密码")
    @NotBlank(message = "密码不能为空")
    private String password;
    @ApiModelProperty("客户名称")
    @NotBlank(message = "客户名称不能为空")
    private String name;
    @ApiModelProperty("联系方式")
    @NotBlank(message = "联系方式不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "无效的手机号")
    private String phone;
    @ApiModelProperty("配置账号")
    @NotBlank(message = "配置账号不能为空")
    private String username;
    @ApiModelProperty("备注")
    @NotBlank(message = "备注不能为空")
    private String descr;

}
